package com.tale.ssm.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tale.ssm.dao.ClazzDao;
import com.tale.ssm.entity.Clazz;
import com.tale.ssm.service.ClazzService;

@Service
public class ClazzServiceImpl implements ClazzService{
	
	@Autowired
	private ClazzDao clazzDao;

	@Override
	public List<Clazz> findList(Map<String, Object> query) {
		return clazzDao.findList(query);
	}

	@Override
	public Integer getTotal(Map<String, Object> query) {
		return clazzDao.getTotal(query);
	}

	@Override
	public int add(Clazz clazz) {
		return clazzDao.add(clazz);
	}

	@Override
	public List<Clazz> findAll() {
		return clazzDao.findAll();
	}

	@Override
	public int delete(String id) {
		return clazzDao.delete(id);
	}

	@Override
	public int edit(Clazz clazz) {
		return clazzDao.edit(clazz);
	}

}
